import Vue from "vue";
import App from "./App.vue";
import Foo from "./components/foo.vue";
import Bar from "./components/bar.vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

Vue.config.productionTip = false;

import * as fundebug from "fundebug-javascript";
import FundebugVue from "fundebug-vue";

fundebug.apikey =
  "c5ce77ae9c79b541e853c837d347518b4492a87b8e4837f953dc37c4ac601494";

new FundebugVue(fundebug).installVueErrorHandler(Vue);

fundebug.test();

const routes = [
  { path: "/foo", component: Foo },
  { path: "/bar", component: Bar },
];

const router = new VueRouter({
  routes,
});

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
